package com.zhny.dao;

import com.zhny.entity.DTU_data;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author Alex
 * @date 2018/4/5
 */
public interface IWsADataDao {

    @Select("select soilhumi1,airtemp,airhumi,sundata,coo,yanfen from ws_a_data where dtu=#{DTU} order by datetime desc limit 1")
    DTU_data select(@Param("DTU") String dtu);

}
